﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="bantin.aspx.cs" Inherits="bantin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DataList ID="DataListBanTinChiTiet" runat="server" DataKeyField="MaBanTin" 
        DataSourceID="AccessDataSourceBanTinChiTiet" CellPadding="4" 
        ForeColor="#333333">
        <AlternatingItemStyle BackColor="White" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <ItemStyle BackColor="#EFF3FB" />
        <ItemTemplate>
            <br />
            <table style="width:100%;">
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Small" 
                            ForeColor="Blue" Text='<%# Eval("TieuDe") %>'></asp:Label>
                        <br />
                        <asp:Label ID="Label2" runat="server" Font-Size="Small" ForeColor="Silver" 
                            Text='<%# Eval("NgayDangTin", "{0:G}") %>'></asp:Label>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Small" 
                            Text='<%# Eval("NoiDungTomTat") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Image ID="Image3" runat="server" ImageUrl='<%# Eval("HinhAnh") %>' />
                        <br />
                        <asp:Label ID="Label5" runat="server" Font-Size="Small" ForeColor="Silver" 
                            Text='<%# Eval("ChuThichHinh") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align=justify>
                        <asp:Label ID="Label4" runat="server" Font-Size="Small" 
                            Text='<%# Eval("NoiDung") %>'></asp:Label>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    </asp:DataList>
    <asp:AccessDataSource ID="AccessDataSourceBanTinChiTiet" runat="server" 
        DataFile="~/App_Data/TinTuc.mdb" 
        SelectCommand="SELECT * FROM [BanTin] WHERE ([MaBanTin] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="MaBanTin" QueryStringField="MaBanTin" 
                Type="String" />
        </SelectParameters>
    </asp:AccessDataSource>
    <br />
</asp:Content>

